package com.soulkun.smarthome.logic

object Constant {

    const val API_KEY_WEATHER = "AQZxAlw8eMUpmSPm"

    const val BASE_URL_API = "http://47.99.95.95:8079"
    const val BASE_URL_WEBSOCKET = "ws://47.99.95.95:8079/webSocket"
    const val BASE_URL_WEATHER = "https://api.caiyunapp.com/v2.5"

    const val BUNDLE_ROOM = "room"
    const val BUNDLE_MESSAGE_STATUS = "message_status"
    const val BUNDLE_MESSAGE_ALERT = "message_alert"
    const val BUNDLE_MESSAGE_FAMILY = "message_family"
    const val BUNDLE_MESSAGE_USER = "message_user"

    const val SHARED_PREFERENCE_USERNAME = "username"
    const val SHARED_PREFERENCE_PASSWORD = "password"
    const val SHARED_PREFERENCE_ACCESS_TOKEN = "access_token"
    const val SHARED_PREFERENCE_REFRESH_TOKEN = "refresh_token"
    const val SHARED_PREFERENCE_USER_ID = "user_id"
    const val SHARED_PREFERENCE_ACCESS_TIME = "access_time"

    const val BROADCAST_MESSAGE_STATUS = "com.soulkun.message.status"
    const val BROADCAST_MESSAGE_ALERT = "com.soulkun.message.alert"
    const val BROADCAST_MESSAGE_FAMILY = "com.soulkun.message.family"
    const val BROADCAST_MESSAGE_USER = "com.soulkun.message.user"

    const val PERMISSION_REQUEST_CAMERA = 100
    const val PERMISSION_REQUEST_RECORD_AUDIO = 101
    const val PERMISSION_REQUEST_LOCATION = 102

    const val ACTIVITY_REQUEST_ADD_DEVICE = 200
    const val ACTIVITY_RESULT_ADD_DEVICE = 201

    const val CODE_WEBSOCKET_CLOSE = 1

}